home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12631 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: solon.com!not-for-mail
  2. From: seebs@solutions.solon.com (Peter Seebach)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Looking for semaphore example.
  5. Date: 1 Apr 1996 19:31:26 -0600
  6. Organization: Usenet Fact Police (Undercover)
  7. Message-ID: <4jq01e$9kq@solutions.solon.com>
  8. References: <4jc5hd$1vlv@ilx018.iil.intel.com> <828220289snz@genesis.demon.co.uk> <4jlc0k$j02@solutions.solon.com> <828366149snz@genesis.demon.co.uk>
  9. NNTP-Posting-Host: solutions.solon.com
  10.  
  11. In article <828366149snz@genesis.demon.co.uk>,
  12. Lawrence Kirby  <fred@genesis.demon.co.uk> wrote:
  13. >>Unless you wanted to implement software-level coprocesses or the like,
  14. >>which you could do.
  15.  
  16. >Strictly conforming?
  17.  
  18. Sure.  You could write strictly conforming C which parses and translates
  19. one or more programs in an arbitrary language, and gives them various
  20. "calls" they can make, which could include semaphores.
  21.  
  22. (Strictly conforming apart from memory requirements, anyway.)
  23.  
  24. It wouldn't be an OS-level semaphore, but it would have
  25. *exactly* the same logical form, assuming you wanted it to.
  26.  
  27. Of course, it's probably useless to someone wanting to, say, have
  28. two programs written in C do semaphores or locking, but it could
  29. be quite useful to someone wanting to, say, learn how semaphores
  30. work.
  31.  
  32. Lesse, one hand up and one down is a 'Y', right?
  33.  
  34. -s
  35. -- 
  36. Peter Seebach - seebs@solon.com - Copyright 1996 Peter Seebach.
  37. C/Unix wizard -- C/Unix questions? Send mail for help.  No, really!
  38. FUCK the communications decency act.  Goddamned government.  [literally.]
  39. The *other* C FAQ - http://www.solon.com/~seebs/c/c-iaq.html
  40.